package org.manager.action;

import java.util.List;

import org.use.entity.Manager;
import org.use.entity.ManagerHome;

import com.opensymphony.xwork2.ActionSupport;

public class RootManagementAction extends ActionSupport {

	private String managerName;
	private List<Manager> managerList;

	public List<Manager> getManagerList() {
		ManagerHome managerHome = new ManagerHome();
		managerList = managerHome.getAll();
		System.out.println(managerList);
		return managerList;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getManagerName() {
		return managerName;
	}

	public String selectManagerByNameLike() {
		System.out.println("selectMangerByNameLike");
		return SUCCESS;
	}
}
